package com.niiwoo.activity.stage.enums.invite;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * tjb
 * 投资流程链接类型 1 我-投资
 */
@AllArgsConstructor
@Getter
public enum InviteInvestFlowLinkTypeEnum {

    ME_INVEST(Byte.valueOf("1"), "我-投资");

    private Byte code;
    private String desc;

    public static InviteInvestFlowLinkTypeEnum valueOf(Byte code) {
        for (InviteInvestFlowLinkTypeEnum yesOrNoEnum : InviteInvestFlowLinkTypeEnum.values()) {
            if (code.byteValue() == yesOrNoEnum.getCode()) {
                return yesOrNoEnum;
            }
        }
        return null;
    }
}

